package com.yunji.cabinet.device;

import lombok.Getter;

/**
 * @author : peter-zhu
 * @date : 2025/1/15 17:53
 * @description : TODO
 **/
@Getter
public enum DeviceEventEnum {
    FACTORY_TEST("工厂测试"),//工厂测试触发
    ORDER("下单"),//下单
    STAFF_RESTOCK("员工补货"),//员工补货
    STAFF_TAKE("员工取货"),//员工取货
    TEMPLATE_MODIFY("更换模板"),// 更换模板
    DEVICE_GRADE("设备升级");
    private final String desc;
    DeviceEventEnum(String desc) {
        this.desc = desc;
    }

    public static String getDesc(String name) {
        for (DeviceEventEnum e : DeviceEventEnum.values()) {
            if (e.name().equals(name)) {
                return e.desc;
            }
        }
        return null;
    }
}
